package Entities;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name = "PedidoInsumo")
public class Entity_PedidoInsumo implements Serializable{
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue
	@Column(name = "id_pedido_insumo")
	private int idPedidoInsumo;
	@Column
	private int diasOperativos;
	@OneToOne(cascade = CascadeType.ALL)
	@JoinColumn(name = "id_area")
	private Entity_Area area;
	@OneToOne(cascade = CascadeType.ALL)
	@JoinColumn(name = "id_insumo")
	private Entity_Insumo insumo;
	@Column
	private float cantExistente;
	@Column
	private float cantSolicitada;

	
	public int getDiasOperativos() {
		return diasOperativos;
	}
	public void setDiasOperativos(int diasOperativos) {
		this.diasOperativos = diasOperativos;
	}
	public Entity_Area getArea() {
		return area;
	}
	public void setArea(Entity_Area area) {
		this.area = area;
	}
	
	public Entity_Insumo getInsumo() {
		return insumo;
	}
	public void setInsumo(Entity_Insumo insumo) {
		this.insumo = insumo;
	}
	public int getIdPedidoInsumo() {
		return idPedidoInsumo;
	}
	public void setIdPedidoInsumo(int idPedidoInsumo) {
		this.idPedidoInsumo = idPedidoInsumo;
	}
	public float getCantExistente() {
		return cantExistente;
	}
	public void setCantExistente(float cantExistente) {
		this.cantExistente = cantExistente;
	}
	public float getCantSolicitada() {
		return cantSolicitada;
	}
	public void setCantSolicitada(float cantSolicitada) {
		this.cantSolicitada = cantSolicitada;
	}
}
